<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'userAdd.jsp' starting page</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
 <jsp:include page="menu.jsp" />
	<s:form action="userSaveOrUpdate" method="post">
		<s:textfield name="username" label="username" value="%{user.username}" />
		<s:textfield name="fullname" label="fullname" value="%{user.fullname}" />
		<s:textfield name="password" label="password" value="%{user.password}" />
		<s:select label="权限" name="purview" list="#{0:'管理员',1:'销售',2:'仓库' }" value="%{user.purview}" />
		<s:select  label="状态"  name="status" list="#{0:'正常',1:'锁定'}" value="%{user.status}" ></s:select>

		<s:submit></s:submit>

		<s:hidden name="id" value="%{user.id}" />
		<s:hidden name="createDate" value="%{user.createDate}" />
		<s:hidden name="loginCount" value="%{user.loginCount}" />
	</s:form>

</body>
</html>
